using FluentNHibernate.Mapping;
using RMH.Entities;

namespace RMH.DataAccess.Mappings
{
    public class RelationshipMap : ClassMap<Relationship>
    {
        public RelationshipMap()
        {
            Id(x => x.Id);
            Map(x => x.Type);
            References(r => r.Patient).FetchType.Join();
            References(r => r.SupportPerson).FetchType.Join();
            
        }
    }
}